.a1 {
    font-size: 2.5rem;
    color: transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    padding: 20px 0;
    margin: 30px 0;
	margin-top: 70px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleFloat 2s ease-in-out infinite;
	background-color: #86bdff;
}

.a1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4 30%, #ff6b6b 70%);
}
.a1:hover::after {
    width: 200px; /* 延长装饰线长度 */
    background: linear-gradient(90deg, #ff6b6b 30%, #4ecdc4 70%); /* 颜色反转 */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	}
@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 添加到CSS */
.checkout-actions {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.checkout-actions button:first-child {
    background: #4CAF50;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 16px;
}

.checkout-actions button:first-child:hover {
    background: #45a049;
}

.checkout-actions button:last-child {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    width: 100%;
}

/* 更新总价显示 */
#checkout-total {
    font-weight: bold;
    margin-left: 5px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.3);
    padding: 15px 25px;
    border-radius: 8px;
}

/* 导航按钮 */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #212529;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* 导航点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots span.active {
    background: white;
    transform: scale(1.3);
}
body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .product-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .product {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .product img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 4px;
        }

        .cart-toggle {
            position: fixed;
            right: 30px;
            top: 30px;
            background: #4ecdc4;
            border: none;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .cart-toggle:hover {
            transform: scale(1.1) rotate(-10deg);
            background: #ff6b6b;
        }
        
        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }
        
        /* 购物车容器调整 */
        .cart {
            position: fixed;
            right: -350px;
            top: 100px;
            width: 320px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .cart.active {
            right: 30px;
            display: block;
        }
		.comments-section {
		    max-width: 800px;
		    margin: 40px auto;
		    padding: 20px;
		    background: white;
		    border-radius: 12px;
		    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
		}
		
		.comment-form {
		    display: flex;
		    gap: 15px;
		    margin-bottom: 30px;
		}
		
		.user-avatar {
		    width: 40px;
		    height: 40px;
		    background: #4ecdc4;
		    border-radius: 50%;
		    display: flex;
		    align-items: center;
		    justify-content: center;
		    font-size: 20px;
		}
		
		.input-group {
		    flex: 1;
		}
		
		#comment-author {
		    width: 200px;
		    margin-bottom: 10px;
		    padding: 8px;
		    border: 1px solid #ddd;
		    border-radius: 4px;
		}
		
		#comment-content {
		    width: 100%;
		    height: 80px;
		    padding: 12px;
		    border: 1px solid #ddd;
		    border-radius: 8px;
		    resize: vertical;
		    margin-bottom: 10px;
		}
		
		.comment-list {
		    border-top: 1px solid #eee;
		    padding-top: 20px;
		}
		
		.comment-item {
		    display: flex;
		    gap: 15px;
		    margin-bottom: 20px;
		    animation: fadeIn 0.5s ease;
		}
		
		.comment-content {
		    flex: 1;
		    background: #f8f9fa;
		    padding: 15px;
		    border-radius: 8px;
		    position: relative;
		}
		
		.comment-content::before {
		    content: "";
		    position: absolute;
		    left: -10px;
		    top: 15px;
		    border-right: 10px solid #f8f9fa;
		    border-top: 8px solid transparent;
		    border-bottom: 8px solid transparent;
		}
		
		@keyframes fadeIn {
		    from { opacity: 0; transform: translateY(10px); }
		    to { opacity: 1; transform: translateY(0); }
		}
		
		.nav-item {
		    position: relative;
		    overflow: hidden;
		}
		
		.nav-item::after {
		    content: "";
		    position: absolute;
		    bottom: 0;
		    left: 50%;
		    width: 0;
		    height: 3px;
		    background: #ff6b6b;
		    transition: all 0.3s ease;
		}
		
		.nav-item:hover::after {
		    left: 0;
		    width: 100%;
		}
		
		.nav-item:hover .nav-icon {
		    transform: scale(1.2) rotate(-5deg);
		    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
		}
		
		.nav-item:hover .nav-text {
		    letter-spacing: 1px;
		    color: #333;
		}
		
		/* PC端增强效果 */
		@media (min-width: 768px) {
		    .nav-item:hover {
		        background: rgba(255,255,255,0.9);
		        transform: translateY(-3px);
		    }
		    
		    .nav-item:hover::after {
		        height: 4px;
		    }
		}
		
.main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin: 0;
}

.nav-item {
    list-style: none;
    text-align: center;
    flex: 1;
}

.nav-item a {
    display: block;
    padding: 12px;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.nav-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 12px;
    display: block;
}

/* 激活状态 */
.nav-item.active a {
    color: #4ecdc4;
    transform: translateY(-5px);
}

/* 消息气泡 */
.badge {
    position: absolute;
    top: 5px;
    right: 15px;
    background: #ff4757;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 18px;
    animation: pulse 1.5s infinite;
}

/* 响应式设计（PC端） */
@media (min-width: 768px) {
    .main-nav {
        top: 0;
        bottom: auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-list {
        max-width: 1200px;
        margin: 0 auto;
        justify-content: flex-start;
    }
    
    .nav-item {
        flex: 0 1 auto;
        margin: 0 20px;
    }
    
    .nav-text {
        font-size: 14px;
    }
    
    .nav-icon {
        margin-bottom: 0;
        margin-right: 8px;
        display: inline-block;
    }
    
    .nav-item a {
        padding: 20px;
        display: flex;
        align-items: center;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

#search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    font-size: 16px;
    color: #333;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(78,205,196,0.3);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

/* 添加商品隐藏动画 */
.product {
    transition: all 0.3s ease;
}
.custom-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #706599;
}

.custom-divider::before,
.custom-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #00aaff;
}

.custom-divider::before { margin-right: 20px; }
.custom-divider::after { margin-left: 20px; }
        button {
            background: #007bff;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
        }